package gui;

import java.awt.Color;

import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JPanel;
import javax.swing.JLabel;

import java.awt.Font;
import java.awt.event.ActionListener;

import javax.swing.JButton;

public class Menu extends JPanel {

	private JLabel lblSelect;
	private JButton btnBeef;
	private JButton btnChicken;
	private JButton btnFish;
	private JButton btnKidsChoice;
	private JButton btnQuickFood;
	private JButton btnBudget;
	private JLabel lblLogo;
	
	public Menu() {
		
		setBounds(0, 0, 264, 451);
		setBackground(new Color(245, 245, 245));
		setLayout(null);
		
		Icon logo = new ImageIcon(getClass().getResource(
				"logoformenu.png"));
		
		lblSelect = new JLabel("Please select a category");
		lblSelect.setFont(new Font("Myriad Pro", Font.PLAIN, 18));
		lblSelect.setBounds(35, 240, 185, 19);
		add(lblSelect);
		
		btnBeef = new JButton("Beef");
		btnBeef.setBounds(35, 280, 89, 23);
		add(btnBeef);
		
		btnChicken = new JButton("Chicken");
		btnChicken.setBounds(131, 280, 89, 23);
		add(btnChicken);
		
		btnFish = new JButton("Fish");
		btnFish.setBounds(35, 330, 89, 23);
		add(btnFish);
		
		btnKidsChoice = new JButton("Kid's Choice");
		btnKidsChoice.setBounds(131, 330, 89, 23);
		add(btnKidsChoice);
		
		btnQuickFood = new JButton("Quick Food");
		btnQuickFood.setBounds(35, 380, 89, 23);
		add(btnQuickFood);
		
		btnBudget = new JButton("Budget");
		btnBudget.setBounds(131, 380, 89, 23);
		add(btnBudget);
		
		lblLogo = new JLabel("");
		lblLogo.setBounds(28, 25, 200, 182);
		lblLogo.setIcon(logo);
		add(lblLogo);

	}
	
	public JButton btnBeef(){
		return btnBeef;
	}
	public JButton btnChicken(){
		return btnChicken;
	}
	public JButton btnFish(){
		return btnFish;
	}
	public JButton btnKidsChoice(){
		return btnKidsChoice;
	}
	public JButton btnQuickFood(){
		return btnQuickFood;
	}
	public JButton btnBudget(){
		return btnBudget;
	}
	public void addActionListener(ActionListener actionlistener) {
		btnBeef.addActionListener(actionlistener);
		btnChicken.addActionListener(actionlistener);
		btnFish.addActionListener(actionlistener);
		btnKidsChoice.addActionListener(actionlistener);
		btnQuickFood.addActionListener(actionlistener);
		btnBudget.addActionListener(actionlistener);
	}

}
